package classloaderx;

public class TestMyClassLoader {
    public static void main(String[] args) {
        MyClassLoader classLoader = new MyClassLoader("D:/home/adump/");
        try {
            Class<?> clazz = classLoader.loadClass("Demo");
            System.out.println(clazz.getClassLoader());  //classloaderx.MyClassLoader@1517365b
            System.out.println(clazz.getClassLoader().getParent());  //sun.misc.Launcher$AppClassLoader@18b4aac2
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
